package com.zte.sys.dept.service;

import com.zte.sys.area.model.SysCity;
import com.zte.sys.area.model.SysProvince;
import com.zte.sys.dept.model.Dept;
import com.zte.sys.dept.model.DeptCondition;
import com.zte.sys.dept.model.SysCityCondition;
import com.zte.util.PageModel;

import java.util.List;


public interface IDeptService {


    /**
     * 部门分页条件查询
     * @param pageModel
     * @param conn
     * @return
     */
    public PageModel<Dept> queryDeptPageByCondition(DeptCondition conn, PageModel<Dept> pageModel);
    public List<SysProvince> queryProvinceList(String pId);
    public List<SysCity> queryCityList(SysCityCondition conn);

    /**
     * 部门详情
     * @param conn
     * @return
     */
    public Dept queryDeptByDeptId(DeptCondition conn);

    /**
     * 添加部门
     * @param dept
     * @return
     */
    public int addDept(Dept dept);

    /**
     * 修改部门
     * @param dept
     * @return
     */
    public int updateDept(Dept dept);

    /**
     * 注销恢复修改
     * @param dept
     * @return
     */
    public int updateDeptState(Dept dept);
}
